Fixed small bug with not being able to remove layers, after they were added