Whoops fixed bug waiting to happen