While trying to rename the kotlin class file.from lowercase to uppercase it do the renaming but it will give run time error of redeclaration of file name.
Try clean your project with menu Build/Clean Project, then double shift and enter your class name. Probably you have two classes with same name in the same package. Rename your existing class and then rename class you wanted.
Select KotlinFile and Press Shift+F6