Fixed the code a little