fixed possible bug? no time for coding today but I caught this one thinking about the test project I did yesterday, did quick test and it seems to work fine