It would probably be safest to stick it out, you may find it difficult to obtain as second position having left the first. However, I think it is unlikely you will simply be able to change topic. Funds are usually secured by a supervisor for a specific project.